<?php 
drupal_add_js('js/loadsubcate.js');
drupal_add_js('js/jquery-ui-1.8.16.custom.min.js');
drupal_add_css('css/ui-lightness/jquery-ui-1.8.16.custom.css');
drupal_add_css('css/style.dev1.css');
?>
<form id="fRaovat" name="fCate" action="<?php print url('admin/raovat/info')?>" method="POST" enctype="multipart/form-data">
    <!-- Button show block raovat info -->
    <input type="submit" id="show_form_post" disabled="true" value="Đăng tin rao vặt" />
    <!-- End button show block raovat info -->
    
    <!-- Category -->
    <div id="showcate" class="form-item">
        <span id="loadding"></span>
        <div class="clean"></div>        
        <div class="combo">
            <h6 class="caption_combo">Danh mục gốc</h6>
            <select class="showsub" id="showsub_0" level="0" size="15">                            
                <?php
                if(count($data['list_danhmuc']) > 0) {
                    foreach($data['list_danhmuc'] as $obj) {
                        echo '<option value="' . hexID($obj->cate_id) . '">' . $obj->cate_name . '</option>';
                    }
                }
                ?>
            </select>
        </div>                    
    </div>
    <div class="clean"></div>
    <input type="hidden" name="cate_id" id="cate_id" value="" readonly="true" />
    <input type="hidden" id="action" value="raovat" readonly="true" /><!-- sanpham, raovat, hoidap -->
    <!-- End Category -->
</form>